package net.sunofbeach.ucenter.response;

public enum ResponseStatue {
    SUCCESS(true,200,"操作成功"),
    LOGIN_SUCCESS(false,201,"登录成功"),
    JOIN_IN_SUCCESS(false,202,"注册成功"),
    FAIlED(false,400,"操作失败"),
    GET_RESOURCE_FAILED(false,401,"获取资源失败"),
    ACCOUNT_NOT_LOGIN(false,402,"账号未登录"),
    PERMISSION_DENIED(false,402,"账号权限不足"),
    ACCOUNT_DENIED(false,403,"账号被禁止"),
    LOGIN_FAILED(false,409,"登录失败"),
    ERROR_404(false,404,"页面丢失"),
    ERROR_403(false,405,"权限不足"),
    ERROR_504(false,406,"系统繁忙去，请稍后重试"),
    ERROR_505(false,407,"系统错误，请检查所提交数据");


    ResponseStatue(boolean success,int code,String message){
        this.success=success;
        this.code =code;
         this.message=message;
    }

    private int code;
    private String message;
    private boolean success;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }
}
